

        <g:set var="entityName" value="${message(code: 'article.label', default: 'Article')}" />
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: articleInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.title.label" default="Title" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: articleInstance, field: "title")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.category.label" default="Category" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: articleInstance, field: "category")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.content.label" default="Content" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: articleInstance, field: "content")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.attachments.label" default="Attachments" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${articleInstance.attachments}" var="a">
                                    <li><g:link controller="UFile" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.shared.label" default="Shared" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${articleInstance.shared}" var="s">
                                    <li><g:link controller="teacher" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.editor.label" default="Editor" /></td>
                            
                            <td valign="top" class="value"><g:link controller="teacher" action="show" id="${articleInstance?.editor?.id}">${articleInstance?.editor?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.hit.label" default="Hit" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: articleInstance, field: "hit")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="article.createTime.label" default="Create Time" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${articleInstance?.createTime}" /></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${articleInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
